package cn.ibizlab.odoo.core.odoo_rating.service;

import java.io.Serializable;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.HashMap;
import java.util.Collection;
import java.math.BigInteger;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import cn.ibizlab.odoo.core.odoo_rating.domain.Rating_rating;
import cn.ibizlab.odoo.core.odoo_rating.filter.Rating_ratingSearchContext;

/**
 * 实体[Rating_rating] 服务对象接口
 */

public interface IRating_ratingService{
     boolean update(Rating_rating rating_rating) ;
     void removeBatch(Collection<? extends Serializable> idList, int batchSize) ;
     void updateBatch(List<Rating_rating> rating_ratings, int batchSize) ;
     boolean create(Rating_rating rating_rating) ;
     void createBatch(List<Rating_rating> rating_ratings, int batchSize) ;
     Rating_rating get(Integer id) ;
     Rating_rating get(Rating_rating rating_rating) ;
     boolean remove(Integer id) ;

    /**
     * 查询集合 默认查询
     */
    Page<Rating_rating> searchDefault(Rating_ratingSearchContext context) ;

    /**
     * 根据消息查询
     */
     Page<Rating_rating> selectByOdoo_message(Integer id) ;

    /**
     * 根据联系人查询
     */
     Page<Rating_rating> selectByOdoo_partner(Integer id) ;

    /**
     * 根据联系人查询
     */
     Page<Rating_rating> selectByOdoo_rated_partner(Integer id) ;

    /**
     * 根据用户查询
     */
     Page<Rating_rating> selectByOdoo_create(Integer id) ;

    /**
     * 根据用户查询
     */
     Page<Rating_rating> selectByOdoo_write(Integer id) ;

    /**
     * 转换ClientModel为Domain
     */
    public Rating_rating convert2Domain(cn.ibizlab.odoo.core.client.model.Irating_rating model ,Rating_rating domain);

    /**
     * 转换Domain为ClientModel
     */
    public cn.ibizlab.odoo.core.client.model.Irating_rating convert2Model(Rating_rating domain , cn.ibizlab.odoo.core.client.model.Irating_rating model);

}
